<?php

/**
 * Model AuthForm
 *
 * @author luubk
 * @since Jan 14, 2013 - 2:09:18 PM
 */
class AuthForm extends CFormModel
{

    public $name;
    public $description;
    public $data;
    public $bizRule;

    /**
     * Declares the validation rules.
     * The rules state that username and password are required,
     * and password needs to be authenticated.
     */
    public function rules()
    {
        return array(
            array('name, description', 'required'),
            array('data, bizRule', 'safe'),
        );
    }

    /**
     * Declares attribute labels.
     */
    public function attributeLabels()
    {
        return array(
            'name'       => Yii::t('user', 'Username'),
            'password'   => Yii::t('user', 'Password'),
            'rememberMe' => Yii::t('user', '<span></span>Remember me {days} days', array(
                '{days}' => self::REMEMBER_DAY
            )),
        );
    }

    public function hasChild($param)
    {
        return FALSE;
    }

}

/** 
 * End file AuthForm
 */
